package com.hlkj.warboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.hlkj.warboot.*.mapper") // 多个路径也可以以逗号分隔
@EnableAsync // 开启异步
@EnableTransactionManagement // 开启注解事务
@EnableRedisHttpSession(redisNamespace = "warboot") // 开启SpringSession共享功能
public class WarbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(WarbootApplication.class, args);
    }

}
